#include "test.h"

int main() {
	int8_t b00, b01, b02, b03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13, b14, b15;

	LOAD_VECTOR_SBYTE(13, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31);
	LOAD_VECTOR_SBYTE(14, 4, 2, 8, 6, 12, 10, 16, 14, 20, 18, 24, 22, 28, 26, 32, 30);

	asm("vminsb 15, 13, 14");

	STORE_VECTOR_SBYTE(15, b00, b01, b02, b03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13, b14, b15);

	return !(b00 == 1 && b01 == 2  && b02 == 5  && b03 == 6 && b04 == 9  && b05 == 10  && b06 == 13 && b07 == 14 && b08 == 17 && b09 == 18 && b10 == 21 && b11 == 22 && b12 == 25 && b13 == 26 && b14 == 29 && b15 == 30);
}

